<?php
$url = $_GET['url'];
if (empty($url)) {
exit('<html>
<head>
<meta charset="UTF-8" />
<title>残月解析-弹幕播放器</title>
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="残月解析,弹幕播放器">
<meta name="description" content="残月解析-弹幕播放器 ">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="x5-orientation" content="portrait" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style>
body,html {
	font: 18px"Microsoft Jhenghei",Arial,Lucida Grande,Tahoma,sans-serif;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
	overflow-y: hidden;
	background-color: black
}

#loading {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	text-align: center;
	display: table;
	position: absolute;
	z-index: 10000000001;
	background-size: 100%100%
}

h1 {
	color: #ffffff;
	font-size: 1.2rem;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	display: table-cell
}
</style>
</script>
 </head>
 <body>
 <body background="img/bg.png">
  </div>
  <div id="loading" class="center">
<h1 style="text-shadow: 2px 2px 5px #d5ebe1;">仅供内部交流研究，请勿用于任何商业用途 <br><br><br><br><br>    <font size="10">解析失败 URL为空，请稍后再试 ~ </font><br><br><font size="3"><p></p><p><p><br></p><p><br></font><font size="2"><br>本站均来于互联网，请勿用于商业用途，仅供学习交流
<br><br><br>
<a href="/" target="_Blank"> Copyright © 2025 All Rights Reserved </a></font></h1>
</body>
</html>');
}
?>

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>残月解析-弹幕播放器</title>
<link rel="stylesheet" href="css/btjson.css">
<style>
.btjson-full-icon span svg,.btjson-fulloff-icon span svg{display: none;}
.btjson-full-icon span,.btjson-fulloff-icon span{background-size:contain!important;float: left;width: 22px;height: 22px;}
.btjson-full-icon span{background: url(./img/full.png) center no-repeat;}
.btjson-fulloff-icon span{background: url(./img/fulloff.webp) center no-repeat;}
#loading-box {background: #fff!important;}
#vod-title{overflow: unset;width: 285px;white-space: normal;color: #fb7299;}
#vod-title e{padding: 2px;}
.layui-layer-dialog{text-align: center;font-size: 16px;padding-bottom: 10px;}
.layui-layer-btn.layui-layer-btn-{padding: 15px 5px !important;text-align: center;}
.layui-layer-btn a{font-size: 12px;padding: 0 11px !important;}
.layui-layer-btn a:hover{border-color: #00a1d6 !important;background-color:#00a1d6 !important;color: #fff !important;}
</style>
<script src="js/btjson.js"></script>
<script src="js/md5.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/hls.min.js"></script>
<script src="js/layer.js"></script>

<script>
var css ='<style type="text/css">';
var d, s ;
d = new Date();
s = d.getHours();
if(s<17 || s>23){ 
css+='#loading-box{background: #fff;}';//白天
}else{
css+='#loading-box{background: #000;}';//晚上
}
css+='</style>';
//$('head').append(css).addClass("");
</script>

</head>
<body>
<div id="player"></div>
<div class="tj"></div>
<script>
    // 播放器基本设置
    var playlink ="<?php echo($_REQUEST['myurl']);?>",urlpar ='btjson';
    var dmapi = 'https://danmu.zxz.ee/?type=&id=',vodurl = '<?php echo($_REQUEST['url']);?>',vodid="<?php echo($_REQUEST['name']);?>",vodsid="<?php echo($_REQUEST['sid']);?>",vodpic="<?php echo($_REQUEST['pic']);?>",vodname="<?php echo($_REQUEST['name']);?>",next = "<?php echo($_REQUEST['next']);?>",ym="http://127.0.0.1:8080/";
    var pic="https://iflow-image.myquark.cn/quark-study-iflow/upload/2024/yNcMgg1hlikepke/62f4ed76cf42455706fb811f6555fc54.jpg";
    var playnext = next ;
    var user = '<?php echo($_REQUEST['user']);?>',group = "<?php echo($_REQUEST['group']);?>",color = '#00a1d6',logo ='img/logo.png',autoplay = false;
    var danmuon = 1,laoding = 1,diyvodid = 0,pause_ad = 0,usernum = "1";
    //试看时间
    //var trytime_f= 3;
    //违规词
    var pbgjz = ['草','操','妈','逼','滚','网址','网站','支付宝','企','q','n','o','c','m','e'];
    //弹幕库获取
    if(playlink!=''){ }else {var diyvodid = 1;};
    diyid = md5(vodurl),diysid = 0;
    //弹幕礼仪链接
    var dmrule = "dmku/dmku.html"
    //暂停广告
    /*var pause_ad_html = '<div id="player_pause" style="position:absolute;z-index:209910539;top:50%;left:50%;border-radius:5px;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:80%;max-height:80%;"><div style=" color: #f4f4f4;position: absolute;font-size: 14px;background-color: hsla(0, 0%, 0%, 0.42);padding: 2px 4px;margin: 4px;border-radius: 3px;right: 0;">广告</div></div>';    */
    //播放结束
    function video_end() {alert("播放结束啦=。=")};
</script>
<script src="js/setting.js"></script>

</body>
</html>